#include <stdio.h>

int main()
{
    FILE* ptr_file = NULL;
    FILE* create_file = NULL;
    create_file = fopen("binary", "wb");
    fprintf(create_file, "%d ", 64);
    fprintf(create_file, "%d", 24);
    fclose(create_file);
    ptr_file = fopen("binary", "rb");
    int num = 0;
    int sum = 0;
    int flag = 0;
    do
    {
        sum += num;
        flag = fscanf(ptr_file , "%d", &num);
    } while (flag != EOF);
    printf("sum:%d\n", sum);
    return 0;
}
